package com.xindacloud.sms.console.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 短信通道代理商
 * </p>
 *
 * @author czc
 * @since 2019-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "短信通道代理商")
public class SmsAgent implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     * 短信通道代理商ID UUID
     * isNullAble:0
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "短信通道代理商ID", name = "agentId")
    private String agentId;

    /**
     * 主键
     * 代理商名称
     * isNullAble:0
     */
    @ApiModelProperty(value = "代理商名称", name = "agentName")
    private String agentName;

    /**
     * 短信通道代理商发送短信api_key
     * isNullAble:0
     */
    @ApiModelProperty(value = "短信通道代理商发送短信api_key", name = "apiKey")
    private String apiKey;

    /**
     * 短信通道代理商发送短信api_secret
     * isNullAble:0
     */
    @ApiModelProperty(value = "短信通道代理商发送短信api_secret", name = "apiSecret")
    private String apiSecret;

    /**
     * 代理商平台URL
     * isNullAble:0
     */
    @ApiModelProperty(value = "代理商平台URL", name = "apiUrl")
    private String apiUrl;

    /**
     * 是否接受收货报告
     * isNullAble:1,defaultVal:1
     */
    @ApiModelProperty(value = "是否接受收货报告,true为接受,false不接受", name = "deliveryReportReq")
    private Boolean deliveryReportReq;

    /**
     * 短信平台向接入的应用程序推送发送报告回调地址
     * isNullAble:1
     */
    @ApiModelProperty(value = "代理商平台URL", name = "apiUrl")
    private String callBackUrl;

    /**
     * 发送者
     * isNullAble:0
     */
    @ApiModelProperty(value = "发送者ID可字符可数字", name = "senderId")
    private String senderId;

    /**
     * 状态是否可用true可用,false不可用
     * isNullAble:1,defaultVal:1
     */
    @ApiModelProperty(value = "状态是否可用true可用,false不可用", name = "status")
    private Boolean status;

    /**
     * 创建时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    @ApiModelProperty(value = "创建时间 yyyy-MM-dd HH:mm:ss", name = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 代理商分组UUID
     * isNullAble:1
     */
    @ApiModelProperty(value = "代理商分组ID来源代理商组", name = "groupId")
    private String groupId;

    /**
     * 默认通道
     * isNullAble:1
     */
    @ApiModelProperty(value = "是否设为默认通道true是,false不是", name = "isDefault")
    private Boolean isDefault;

    @Override
    public String toString() {
        return "SmsAgent{" +
                "agentId='" + agentId + '\'' +
                "agentName='" + agentName + '\'' +
                "apiKey='" + apiKey + '\'' +
                "apiSecret='" + apiSecret + '\'' +
                "apiUrl='" + apiUrl + '\'' +
                "deliveryReportReq='" + deliveryReportReq + '\'' +
                "callBackUrl='" + callBackUrl + '\'' +
                "senderId='" + senderId + '\'' +
                "status='" + status + '\'' +
                "createTime='" + createTime + '\'' +
                "groupId='" + groupId + '\'' +
                "isDefault='" + isDefault + '\'' +
                '}';
    }


}
